package scene.lighting;


import util.Color3f;
import util.Vector3f;

public class AreaLight extends Light {

	private Vector3f a;
	private Vector3f b;

	public AreaLight(Vector3f c, float intensity, Color3f color,
			String name, Vector3f a, Vector3f b) {
		super(c, intensity, color, name);
		this.a = a;
		this.b = b;
	}
	
	public Vector3f getRandomPoint(float wa, float wb){
		return position.add(a.scale(wa)).add(b.scale(wb));
	}

}
